﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacebookAPI.Objects;
using FacebookAPI.Base;
using FacebookAPI.FacebookProperties;

namespace FacebookAPI.Managers
{
    public class FacebookNotesManager
    {
        public string Create(string objectId, Note note, string accessToken)
        {
            FacebookManager mgr = new FacebookManager();
            FacebookBaseObject response = mgr.SaveObject<FacebookBaseObject>(mgr.GetUrl(objectId, FacebookConnections.Notes, accessToken), note.GetPostData());
            return (response != null) ? response.Id : string.Empty;
        }
    }
}
